#ifndef COUNTINGTAB_H
#define COUNTINGTAB_H

#include <QtGui/QWidget>
#include <QLabel>
#include <QPixmap>
#include <QVector>
#include <QString>
#include <QMessageBox>
#include "seedcounter.h"
#include "imageloader.h"

using namespace std;

namespace Ui {
    class CountingTab;
}

class CountingTab : public QWidget {
    Q_OBJECT

public:
    CountingTab(QWidget *parent = 0);
    ~CountingTab();
    void addLoader(ImageLoader *loader);
    void showContent();

signals:
    void seedCounted(SeedCounter*);

protected:
    void changeEvent(QEvent *e);

private slots:
    void count();
    void hasCount();
    void total();

private:
    Ui::CountingTab *m_ui;
    QPointer<ImageLoader> imgL;
    SeedCounter* sCounter;
    bool counted;
};

#endif // COUNTINGTAB_H
